package before;

public class SumDouble {

	public static void main(String[] args) {
		int a = sumDouble(1, 2);
		int b =	sumDouble(3, 2);
		int c =	sumDouble(2, 2);
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);

	}
	public static int sumDouble(int a, int b) {
		  int result = 0;
		  if(a==b){
			  result = (a+b)*2 ;
		  }else if(a!=b){
			  result = a+b;
		  }
		  return result;
	}


}
